package com.beans;

/**
 * 棋子信息
 * @author acoffee
 * @create 2021-09-02 14:45
 */
public class ChessMessage extends Message{


    private static final long serialVersionUID = 6032259866790849117L;

    private int x;
    private int y;

    public ChessMessage() {
    }

    public ChessMessage(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    @Override
    public String toString() {
        return "ChessMessage{" +
                "x=" + x +
                ", y=" + y +
                '}';
    }
}
